import Vue from 'vue';
import VueRouter from 'vue-router';

/**
 * 路由跳转
 */

import Index from '../components/index/index';
import Hello from '../components/hello/Hello';

Vue.use(VueRouter);

const router = new VueRouter({
    mode: 'history',
    base: __dirname,
    routes: [{
        path: '/hello',
        name: '/hello',
        component: Hello
    },
    {
        path: '*',
        name: '/index',
        component: Index
    }]
});

export default router;
